package com.ly.system.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.system.entity.TbDepartment;
import com.ly.system.entity.TbUser;
import com.ly.system.vo.TbDepartmentVO;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangzhu
 * @since 2020-10-31
 */
public interface TbDepartmentMapper extends BaseMapper<TbDepartment> {
        List<TbDepartmentVO> findDeptAndCount();
        IPage<TbDepartment> findDeptAndCount2(Page<TbUser> page, @Param(Constants.WRAPPER) QueryWrapper<TbDepartment> queryWrapper);
}
